home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / f90 / secondr.z / secondr
Text File  |  1998-10-30  |  2KB  |  53 lines

  1. SECONDR(3F)                                           Last changed: 2-24-98
  2.  
  3.  
  4. NNAAMMEE
  5.      SSEECCOONNDDRR - Returns elapsed wall-clock time in seconds
  6.  
  7. SSYYNNOOPPSSIISS
  8.      All systems:
  9.  
  10.      RREEAALL ((KKIINNDD==88)) SSEECCOONNDDRR
  11.      _t_i_m_e=SSEECCOONNDDRR(( ))
  12.  
  13.      UNICOS systems:
  14.  
  15.      CCAALLLL SSEECCOONNDDRR((_t_i_m_e))
  16.  
  17. IIMMPPLLEEMMEENNTTAATTIIOONN
  18.      UNICOS, UNICOS/mk, and IRIX systems
  19.  
  20. DDEESSCCRRIIPPTTIIOONN
  21.      On IRIX systems, this routine is in lliibbffffiioo..ssoo which is linked by
  22.      default when compiling programs with the MIPSpro 7 Fortran 90 compiler
  23.      or when compiling programs with the --ccrraayylliibbss option to the MIPSpro
  24.      7.2 F77 compiler.
  25.  
  26.      SSEECCOONNDDRR can be called several times during the execution of a program
  27.      to determine the amount of elapsed wall-clock time.
  28.  
  29.      _t_i_m_e is the real-time clock values in floating-point seconds.  If the
  30.      value of the real-time clock exceeds 48 bits, some accuracy may be
  31.      lost during the conversion to float.  The argument must be of type
  32.      real with KKIINNDD==88.
  33.  
  34.      On UNICOS/mk systems, the real-time clocks on processing elements are
  35.      not synchronized with each other.  Therefore, a SSEECCOONNDDRR() value should
  36.      not be compared to a previous SSEECCOONNDDRR() taken on a different
  37.      processing element.
  38.  
  39. EEXXAAMMPPLLEESS
  40.      This example calculates the elapsed wall-clock time from the first
  41.      call to SSEECCOONNDDRR until the second call to SSEECCOONNDDRR.
  42.  
  43.           BEFORE = SECONDR( )
  44.           CALL DOWORK ( )
  45.           AFTER = SECONDR( )
  46.           WALTIM = AFTER - BEFORE
  47.  
  48. SSEEEE AALLSSOO
  49.      RRTTCC(3I), SSEECCOONNDD(3F), TTIIMMEEFF(3F), TTSSEECCNNDD(3F)
  50.  
  51.      _A_p_p_l_i_c_a_t_i_o_n _P_r_o_g_r_a_m_m_e_r'_s _L_i_b_r_a_r_y _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication
  52.      SR-2165, for the printed version of this man page.
  53.